I actually have the same issue when using DISM to integrate the updates to install.wim and creating an ISO file to install W8.1 on a physical machine. Consider the following scenarios:
INTEGRATE THE UPDATES TO WIM FILE, RUN CLEANUP ON THE UPDATED WIM FILE
dism /mount-wim /wimfile:C:\w\IR5_CCSA_X64FRE_EN-US_DV9\sources\install.wim /index:1 /mountdir:C:\w\mount
(as a base I am using MSDN/TechNet en_windows_8.1_with_update_x64_dvd_6051480.iso with November 2014 rollup and I am installing Pro)
dism /image:C:\w\mount /add-package /packagepath:C:\w\msu /preventpending
(the msu directory contains only Windows8.1-KB2959977-x64.cab and Windows8.1-KB2980654-x64.cab)
dism /image:C:\w\mount /get-packages
KB2959977 and KB2980654 are installed
dism /image:C:\w\mount /cleanup-image /startcomponentcleanup
(/resetbase not needed for this problem to manifest)
dism /image:C:\w\mount /get-packages
KB2959977 and KB2980654 are now missing
INTEGRATE THE UPDATES TO WIM FILE, DO NOT RUN CLEANUP
dism /mount-wim /wimfile:C:\w\IR5_CCSA_X64FRE_EN-US_DV9\sources\install.wim /index:1 /mountdir:C:\w\mount
dism /image:C:\w\mount /add-package /packagepath:C:\w\msu /preventpending
dism /unmount-wim /mountdir:C:\w\mount /commit
Install to physical machine or VM- After installation and OOBE (disable Windows Update so it does not mess with things), go to Control Panel/Programs/Programs and Features/Installed Updates:
the updates are there (keep the Installed updates window open)
Now, if you run cleanup on the online image
dism /online /cleanup-image /startcomponentcleanup
immediately after getting to the desktop for the first time, the two updates will vanish (simply refresh the Installed updates window, if you kept it open, to see).
However, there are actions that will make the two updates "stick" and "survive" the cleanup, such as installing drivers or
simply checking for updates in Windows Update (this is why you should have disabled Windows Update in OOBE). At first I thought that I simply need to perform at least one restart/shutdown after installation, but no, if restart is the only thing
you do at the desktop, you may do that many times and running the cleanup command will still remove the two updates.
This is definitely a weird behavior and probably a bug.
-
Edited by
Jan Klos
Saturday, December 27, 2014 4:57 PM
simplified